/***********************************************
 * Title:       TeacherInfo.java
 * Description: TeacherInfo.java
 * Author:      NiDeveloper
 * Create Date: 2010-5-6
 * CopyRight:   CopyRight(c)@2009
 * Company:     TJUSCS
 * Version:     1.0
 ***********************************************
 */
package edu.tju.education.model;

import java.util.Date;

import com.younker.waf.utils.WebUtil;

/**
 * @author NiDeveloper
 * 
 */
public class TeacherInfo
{
        
        public final static String TS_COMMITED = "01";
        public final static String TS_CONFIRMED = "02";
        
        private long id;
        private long teacherId;
        private String itemName;
        private Date gainDate;
        private String remark;
        private String state;
        private String cate;

        public String getString()
        {
                return remark;
        }
        
        public void init(){}
        
        /**
         * @return the id
         */
        public long getId()
        {
                return id;
        }

        /**
         * @param id
         *                the id to set
         */
        public void setId(long id)
        {
                this.id = id;
        }

        /**
         * @return the teacherId
         */
        public long getTeacherId()
        {
                return teacherId;
        }

        /**
         * @param teacherId
         *                the teacherId to set
         */
        public void setTeacherId(long teacherId)
        {
                this.teacherId = teacherId;
        }

        /**
         * @return the name
         */
        public String getItemName()
        {
                return itemName;
        }

        /**
         * @param name
         *                the name to set
         */
        public void setItemName(String name)
        {
                this.itemName = name;
        }

        /**
         * @return the gainDate
         */
        public Date getGainDate()
        {
                return gainDate;
        }
        
        public String getGainDateS()
        {
                return WebUtil.formatDate(gainDate);
        }

        /**
         * @param gainDate
         *                the gainDate to set
         */
        public void setGainDate(Date gainDate)
        {
                this.gainDate = gainDate;
        }

        /**
         * @return the remark
         */
        public String getRemark()
        {
                return remark;
        }

        /**
         * @param remark
         *                the remark to set
         */
        public void setRemark(String remark)
        {
                this.remark = remark;
        }

        /**
         * @return the state
         */
        public String getState()
        {
                return state;
        }

        /**
         * @param state
         *                the state to set
         */
        public void setState(String state)
        {
                this.state = state;
        }

        /* (non-Javadoc)
         * @see java.lang.Object#toString()
         */
        @Override
        public String toString()
        {
                return "TeacherInfo [gainDate=" + gainDate + ", id=" + id + ", itemName="
                                + itemName + ", remark=" + remark + ", state=" + state
                                + ", teacherId=" + teacherId + "]";
        }


        /**
         * @return the cate
         */
        public String getCate()
        {
                return cate;
        }


        /**
         * @param cate the cate to set
         */
        public void setCate(String cate)
        {
                this.cate = cate;
        }
        

}
